package com.ruoyi.constant.v3;

/**
 * 任务类型枚举
 */
public enum RwlxV3Enum {

    GT(1, "固体"),
    YT(2, "液体"),
    TK(3, "探矿");

    private Integer code;
    private String desc;

    RwlxV3Enum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (RwlxV3Enum value : RwlxV3Enum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return "";
    }
}
